package ch03.acXml.ac1;

/**
 * @auth 邝志豪
 * @date 2024/1/8 16:46
 */

/**
 * 除法模式
 */
public class DivisionMode implements  AbstractCompute{
    @Override
    public double compute(double first, double second) {
        if (second==0){
            throw new ArithmeticException("第二位数字不能等于零");
        }
        return first/second;
    }
}
